package com.qfedu.service;

import com.qfedu.dao.CommentDao;
import com.qfedu.entity.Comment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhang
 * @Title: commonValidateAdd
 * @date : 2022/2/23 19:28
 */
@Service
public class CommentServiceImpl implements CommentService {
    @Autowired
    private CommentDao commentDao;

    @Override
    public List<Comment> findAllComment(int songListId) {
        return commentDao.findAllComment(songListId);

    }

    @Override
    public int updateComment(Comment comment) {
        return commentDao.updateComment(comment);
    }

    @Override
    public int deleteComment(Comment comment) {
        return commentDao.deleteComment(comment);
    }

    @Override
    public List<Comment> findComment(int songId) {
        return commentDao.findComment(songId);
    }


}
